package com.kaluli.project.repository.impl;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.kaluli.project.domain.entity.KllKolOrder;
import com.kaluli.project.domain.entity.KllOrderDataVo;
import com.kaluli.project.domain.entity.KllUserDataVo;
import com.kaluli.project.domain.entity.StockVO;
import com.kaluli.project.domain.repository.KllDataRepository;
import com.kaluli.project.domain.repository.KllStockRepository;
import com.kaluli.project.domain.repository.KllkolOrderRepository;
import com.kaluli.system.repository.AbstractRepositorySupport;

@Repository
public class KllkolOrderRepositoryImpl extends AbstractRepositorySupport<KllKolOrder> implements KllkolOrderRepository{

	@Override
	protected Class<KllKolOrder> getEntityClass() {
		// TODO Auto-generated method stub
		return KllKolOrder.class;
	}

	public void updateKolOrder(String orderNumber) {
		StringBuffer 	hql = new StringBuffer("update KllKolOrder t set t.status=2,t.updatedTime=? where t.orderNumber=? ");
		Object[] params = {new Timestamp(System.currentTimeMillis()),orderNumber};
		this.executeHql(hql.toString(), params);
	}
	
	
	

}
